package uk.ac.cam.juliet.zedcat.client;

import java.awt.image.BufferedImage;
import java.util.Date;
import java.util.LinkedList;

/**
 *
 * @author David Piggott
 */
public class Frame {

    private Date mDate = new Date();
    private final BufferedImage mSourceImage;
    private final int[] mSourcePixels;
    private LinkedList<Pixel> mForegroundPixels = new LinkedList<Pixel>();
    private LinkedList<Region> mRegions = new LinkedList<Region>();

    public Frame(BufferedImage sI, int[] sP) {
        mSourceImage = sI;
        mSourcePixels = sP;
    }

    public BufferedImage getSourceImage() {
        return mSourceImage;
    }

    public Date getTimestamp() {
        return mDate;
    }

    public int[] getSourcePixels() {
        return mSourcePixels;
    }

    public void setForegroundPixels(LinkedList<Pixel> fP) {
        mForegroundPixels = fP;
    }

    public LinkedList<Pixel> getForegroundPixels() {
        return mForegroundPixels;
    }

    public void setRegions(LinkedList<Region> r) {
        mRegions = r;
    }

    public LinkedList<Region> getRegions() {
        return mRegions;
    }
}
